package com.toune.villager.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.toune.villager.R
import com.toune.villager.bean.MyFamilyBean
import kotlinx.android.synthetic.main.adapter_my_family.view.*

class MyFamilyAdapter(layoutResId: Int, data: MutableList<MyFamilyBean>?) :
    BaseQuickAdapter<MyFamilyBean, BaseViewHolder>(layoutResId, data) {
    override fun convert(holder: BaseViewHolder, item: MyFamilyBean) {
        holder.setText(R.id.nameTv, "${item.name}        ${item.phone}      ${item.identity}")
    }
}